/*
 * Source code written by Tácio S. Diogo.
 * Email: taciosd@gmail.com
 * Any copy or use without permission is prohibited.
 */
package app.agentes;

import app.comportamentos.FazerPropaganda;

/**
 *
 * @author Tácio S. Diogo
 */
public class Candidato extends Agente {
    
    public Candidato() {
    }
    
    @Override
    protected void setup() {
        Object[] args = getArguments();
        if ((args != null) && (args.length > 0)) {
            String etica = (String) args[0];
            setEtica(Double.valueOf(etica));
        }
        
        addBehaviour(new FazerPropaganda(this));
    }
}
